package com.kly.chatter.api.application.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.HashMap;
import java.util.Map;

@Configuration
@ConfigurationProperties(prefix = "app.configs")
//如果只有一个主配置类文件，@PropertySource可以不写
public class AppVersionInfoConfig {
    private Map<String, String> appConfig = new HashMap<>();

    public Map<String, String> getAppConfig() {
        return appConfig;
    }

    public void setAppConfig(Map<String, String> appConfig) {
        this.appConfig = appConfig;
    }
}